From: Claudio Cambra Date: Tue, 18 Feb 2025 03:26:03 +0000 (+0800) Subject: gui/macOS: Do not automatically configure file provider domains for new accounts X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~1^2~18^2~7 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success/%22http:/www.example.com/cgi/success?a=commitdiff_plain;h=23a90120e2ba73deb1df728f3cefe90af87d223d;p=nextcloud-desktop.git gui/macOS: Do not automatically configure file provider domains for new accounts Signed-off-by: Claudio Cambra --- diff --git a/src/gui/macOS/fileproviderdomainmanager.h b/src/gui/macOS/fileproviderdomainmanager.h index ecbed149c..d7583d0d7 100644 --- a/src/gui/macOS/fileproviderdomainmanager.h +++ b/src/gui/macOS/fileproviderdomainmanager.h @@ -41,11 +41,13 @@ public: signals: void domainSetupComplete(); +public slots: + void addFileProviderDomainForAccount(const OCC::AccountState * const accountState); + private slots: void setupFileProviderDomains(); void updateFileProviderDomains(); - void addFileProviderDomainForAccount(const OCC::AccountState * const accountState); void removeFileProviderDomainForAccount(const OCC::AccountState * const accountState); void disconnectFileProviderDomainForAccount(const OCC::AccountState * const accountState, const QString &reason); void reconnectFileProviderDomainForAccount(const OCC::AccountState * const accountState); diff --git a/src/gui/macOS/fileproviderdomainmanager_mac.mm b/src/gui/macOS/fileproviderdomainmanager_mac.mm index ac40f3c1b..7af19491d 100644 --- a/src/gui/macOS/fileproviderdomainmanager_mac.mm +++ b/src/gui/macOS/fileproviderdomainmanager_mac.mm @@ -511,8 +511,6 @@ void FileProviderDomainManager::start() setupFileProviderDomains(); - connect(AccountManager::instance(), &AccountManager::accountAdded, - this, &FileProviderDomainManager::addFileProviderDomainForAccount); // If an account is deleted from the client, accountSyncConnectionRemoved will be // emitted first. So we treat accountRemoved as only being relevant to client // shutdowns.